<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>随机数生成器</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>

    <div class="container">
        <h1>随机数生成器</h1>
        <p>请输入要生成的随机数个数：</p>
        <input type="number" id="nInput" min="1" placeholder="例如：5">
        <button onclick="generate()">生成</button>
        <div id="result"></div>
    </div>

    <script src="script.js"></script>
</body>
</html>